package com.dkd.common.context;

public class BaseContext {
    public static ThreadLocal<String> threadLocal = new ThreadLocal<>();

//    public static void setCurrentId(Long id) {
//        threadLocal.set(id);
//    }

//    public static Long getCurrentId() {
//        return threadLocal.get();
//    }

//    public static void removeCurrentId() {
//        threadLocal.remove();
//    }

    public static void setCurrentUserName(String userName){
        threadLocal.set(userName);
    }

    public static String getCurrentUserName(){
        return threadLocal.get();
    }

    public static void removeCurrentUserName(){
        threadLocal.remove();
    }
}
